package client.abilities.PassiveAbilities;

import client.BattleManager;
import client.MagicColor;
import client.ManaPool;
import client.abilities.CreatureAbility;

public class ForestEnergy extends CreatureAbility {

	private static final long serialVersionUID = 1L;

	private ManaPool pool;

	public ForestEnergy(int tier) {
		this.tier = tier;
		name = "Forest Energy";
		pool = new ManaPool();
		pool.setColor(MagicColor.GREEN, 1 * tier);
		description = "Gain " + (1 * tier)
				+ " green mana at the beginning of battle.";
	}

	@Override
	public boolean use(BattleManager battle) {
		return false;
	}

	@Override
	public void onEnterBattle(BattleManager battle) {
		battle.getPlayer().getManaPool().addPool(pool);
	}

}
